package cn.yj.cgs.dba.entity.vo;

import cn.yj.commons.utils.StringUtils;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author 永健
 * @since 2021-06-15 16:53
 */
@Data
public class ProductFormVo {
    private Integer id;
    private String productName;
    private String productNo;
    private String description;
    private BigDecimal price;
    private String typeNo;
    private String userCode;
    private Long stock;
    private String city;
    private String schoolName;
    private String images;
    public List<String> getImages() {
        return StringUtils.isNotBlank(images)?new ArrayList<>(Arrays.asList(images.split("&&"))):new ArrayList<>();
    }
}
